home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue.arc / TVWSCROL.C < prev    next >
C/C++ Source or Header  |  1990-01-09  |  1KB  |  33 lines

  1. /*=======================================================*/
  2. /*  TVWSCROL.C                                           */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include "tvapi.h"
  12. #include "tvstream.h"
  13.  
  14. /*=======================================================*/
  15. /* TVwin_scroll   scroll area in indicated direction     */
  16. /*   Ralf Brown 4/15/88                                  */
  17. /*=======================================================*/
  18.  
  19. void pascal TVwin_scroll(OBJECT win,int top,int left,int height,int width,
  20.                          int direction)
  21. {
  22.    static BYTE stream[] = { S_WINDOW(6), 0xC1, 0, 0, 0, 0, 0 } ;
  23.  
  24.    stream[5] = top ;
  25.    stream[6] = left ;
  26.    stream[7] = 0xE8 + direction ;  /* which way do we scroll? */
  27.    stream[8] = height ;
  28.    stream[9] = width ;
  29.    TVwin_stream(win,stream) ;
  30. }
  31.  
  32. /* End of TVWSCROL.C */
  33.